package com.jiawa.wiki.req;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author wangbo
 */
@Setter
@Getter
@ToString
public class EbookSaveReq {
    private Long id;

    @NotNull(message = "电子书的名称不可以为空")
    private String name;

    private Long category1Id;

    private Long category2Id;

    private String description;

    private String cover;

    private Integer docCount;

    private Integer viewCount;

    private Integer voteCount;
}